<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:useBean id="logged" class="dating.model.User" scope="request"></jsp:useBean>	
<div class="navbar">
	<div class="navbar-inner">
		<a href="home" class="brand">Dating Site Cool</a>

		<ul class="nav pull-right">
			<% if(logged == null || logged.getId() == 0) { %>
			<li><a href="login">Log-in</a></li>
			<% } else { %>
			<li class="divider-vertical"></li>
			<li class="dropdown"><a data-toggle="dropdown"
				class="dropdown-toggle" href="#">Account (${logged.username})<b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a href="profile?id=${logged.id}">My profile</a></li>
					<li><a href="messages">Messages</a></li>
					<li class="divider"></li>
					<li><a href="logout">Logout</a></li>
				</ul></li>
			<% } %>
		</ul>
	</div>
</div>